<div id="main1">
	<div id="leftside">		
		<?{include file = "user_admin/block/nav.html"}?>		
	</div>	
	<!-- 网站介绍 -->
	<div id="rightside">		
		<div id="column_product_center_second">
<div class="title"><div class="title_l"></div><div class="title_c prodct_3_c"><span class="jcyb_pic"></span><h3 >购物订单</h3></div><div class="title_r"></div></div>		
	<div id="buy">
	<form name="form1" method="post" action="/deal/">
	<TABLE cellSpacing=0 cellPadding=2 width="100%" border=0>
<TR>
<TD vAlign=bottom align=middle>
<TABLE cellSpacing=1 cellPadding=0 width="98%" align=center 
bgColor=#cccccc border=0>
  <TR>
	<TD bgColor=#efefef align=center height=20>	
	<FONT color=#ff6600>¤ <STRONG>用户交易记录</STRONG> ¤</FONT>
	</TD>
  </TR>
</TABLE></TD>
</TR>
<TR>
<TD vAlign=top>
<TABLE cellSpacing=1 cellPadding=1 width="98%" align=center 
bgColor=#cccccc border=0>
	<?{foreach from=$arrData key=key item=arrDeal}?>		
	<TR>
	<TD bgColor=#ffffff>	
	<TABLE cellSpacing=5 cellPadding=5 width="100%" border=0>
	  <TBODY>
		 <TR>
		  <TD colspan="5">
		  订单号：<?{$arrDeal.deal_no}?>		 
		  </td>		    
		 </tr>
		<TR>
		  <TD width="10%">序号</td>	
		  <TD>产品规格</td>		  
		  <TD width="15%">购买价格</td>
		  <TD width="15%">购买数量</td>	
		  <TD width="15%">小计金额</td>	
		 </tr>
		<?{counter start=0 skip=1 print=false}?>
		<?{foreach from=$arrDeal.detail key=key item=arrData}?>
	    <TR>
		  <TD><?{counter}?></td>	
		  <TD><a href="/product/detail.php?id=<?{$arrData.product_id}?>"><?{$arrData.product_title}?></a></td>		  
		  <TD>￥<?{$arrData.deal_price}?></td>
		  <TD><?{$arrData.count}?></td>
		  <TD>￥<?{$arrData.count*$arrData.deal_price}?></td>			  
		 </tr>
		<?{/foreach}?>
		<TR>		  
		  <TD colspan="5">
			  <table width="100%" border="0">
			  <tr>
			  <td width="20%">
			 总金额：￥<?{$arrDeal.sum}?>
			 </td>
			 <td width="25%">
			 订购日期：<?{$arrDeal.deal_time}?>
			 </td>
			 <td width="25%">
			 订单状态：[<?{$arrDeal.state}?>]
			 </td>
			 <td>
			 <?{if $arrDeal.showCancel}?>
			 <form><input type="button" value="取消本订单" onclick="window.location='change_state.php?state=7&no=<?{$arrDeal.deal_no}?>'" /></form>
			 <?{/if}?>
			  <?{if $arrDeal.showFinish}?>
			   <form><input type="button" value="确认已收到货，完成订单" onclick="window.location='change_state.php?state=5&no=<?{$arrDeal.deal_no}?>'" /></form>
			 <?{/if}?>
			 </td>
			 </tr>
			 </table>
		 </td>
		 </tr>
	  </TBODY>
	</TABLE>	
	</td>
	</tr>	
	<?{/foreach}?>
	
	</TABLE>
</td>
</tr>
<tr>
	<td>
	<?{$strPage}?>
	</td>
</tr>
</TABLE>	
	
	</form>
	</div>
	<div class="clear"></div>

	</div><!-- rightside_end -->


</div><!-- mian1_end -->